package com.alpha.task.service;

import org.quartz.SchedulerException;
import org.springframework.transaction.annotation.Transactional;

public interface CountDownService {
	
	/**
	 * 开始执行未加载任务
	 */
	void toStartUnloadTask() throws SchedulerException;
	/**
	 * 指定一条记录执行任务
	 * @param id
	 * @throws SchedulerException
	 */
	void startTaskById(Long id) throws SchedulerException;
	/**
	 * 执行未触发的任务
	 */
	@Transactional
	void toStartUnTriggerTask()  throws SchedulerException;
	
	/**
	 * 修改任务并加载新的任务
	 * @throws SchedulerException
	 */
	@Transactional
	void modifyAndStartTask() throws SchedulerException;

}
